<?php
namespace App\Listeners;

use App\Library\Service\DB\TransactionMonitorService;
use Illuminate\Database\Events\TransactionCommitted;

class TransactionCommittedListener
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     * @param TransactionCommitted $event
     */
    public function handle(TransactionCommitted $event)
    {
        TransactionMonitorService::commit($event);
    }
}
